/*
*Copyright 2021-2023 NERCIS
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/

package cn.ac.nercis.pes.model.dto.project;

import cn.ac.nercis.pes.common.constant.project.SecurityLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 新增/编辑系统信息类
 * @author zpy
 * @version 1.0.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SystemDetailDTO {
    /**
     * ID
     */
    private String id;
    /**
     * 系统名称
     */
    private String name;
    /**
     * 安全等级
     */
    private SecurityLevel securityLevel;
    /**
     * S级别
     */
    private Integer sLevel;
    /**
     * A级别
     */
    private Integer aLevel;
    /**
     * G级别
     */
    private Integer gLevel;
    /**
     * 未定级情况下安全要求等级
     */
    private String reqLevel;
    /**
     * 是否备案（弃用）
     */
    @Deprecated
    private Boolean isFiling;
    /**
     * 备案号
     */
    private String filingNumber;
    /**
     * 系统简介
     */
    private String desc;
    /**
     * 所属项目Id
     */
    private String projectId;

    /**
     * 系统测评基础信息
     */
    @Builder.Default
    private SystemEvaluationDTO systemEvaluation = new SystemEvaluationDTO();
}